package com.ls.fw.search.solrj.form.collection;

import org.hibernate.validator.constraints.NotBlank;

import com.ls.fw.search.solrj.bean.Property;

/**
 * add a replica of a shard
 * 
 * @author ls
 *
 */
public class AddReplicaForm {
	@NotBlank
	protected String action = "ADDREPLICA";
	@NotBlank
	protected String shard;
	@NotBlank
	protected String collection;
	@NotBlank
	protected String _route_;
	protected String async;
	protected String instanceDir;
	protected String dataDir;
	protected Property property;

	public AddReplicaForm() {
		super();
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getAsync() {
		return async;
	}

	public void setAsync(String async) {
		this.async = async;
	}

	public String getShard() {
		return shard;
	}

	public void setShard(String shard) {
		this.shard = shard;
	}

	public String getCollection() {
		return collection;
	}

	public void setCollection(String collection) {
		this.collection = collection;
	}

	public Property getProperty() {
		return property;
	}

	public void setProperty(Property property) {
		this.property = property;
	}

	public String get_route_() {
		return _route_;
	}

	public void set_route_(String _route_) {
		this._route_ = _route_;
	}

	public String getInstanceDir() {
		return instanceDir;
	}

	public void setInstanceDir(String instanceDir) {
		this.instanceDir = instanceDir;
	}

	public String getDataDir() {
		return dataDir;
	}

	public void setDataDir(String dataDir) {
		this.dataDir = dataDir;
	}

}
